class HomeBannerData {
  String? desc;
  int? id;
  String? imagePath;
  int? isVisible;
  int? order;
  String? title;
  int? type;
  String? url;

  HomeBannerData({
    this.desc,
    this.id,
    this.imagePath,
    this.isVisible,
    this.order,
    this.title,
    this.type,
    this.url,
  });

  HomeBannerData.fromJson(Map<String, dynamic> json) {
    desc = json['desc'];
    id = json['id'];
    imagePath = json['imagePath'];
    isVisible = json['isVisible'];
    order = json['order'];
    title = json['title'];
    type = json['type'];
    url = json['url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['desc'] = desc;
    data['id'] = id;
    data['imagePath'] = imagePath;
    data['isVisible'] = isVisible;
    data['order'] = order;
    data['title'] = title;
    data['type'] = type;
    data['url'] = url;
    return data;
  }
}

class HomeBannerListData {
  List<HomeBannerData>? bannerList;
  
  HomeBannerListData({this.bannerList});
  
  HomeBannerListData.fromJson(dynamic json) {
    if (json is List) {
      bannerList = [];
      for (var item in json) {
        if (item is Map<String, dynamic>) {
          bannerList!.add(HomeBannerData.fromJson(item));
        }
      }
    }
  }
}